home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
POETRY.DIR
/
00003_Script_3
< prev
next >
Wrap
Text File
|
1995-11-15
|
2KB
|
92 lines
on idle
showHilite
if the Movie = " POETRY.DIR" then goMovieGo
pass
end idle
on exitFrame
go to the frame
end
on startMovie
setLocalVariables
buildPoetryButtons
buildPoetryList
newPoem
end startMovie
on newPoem
global gPoemLabel, gPageIndex
if voidP(gPoemLabel) then put "P11" into gPoemLabel
if the frameLabel <> gPoemLabel then
go frame (label(gPoemLabel)-1)
--puppetTransition 50,1,120,false
go to marker(1)
end if
--addToRetrace
put 0 into gPageIndex
setUpPage "next"
updateStage
end newPoem
on stopMovie
unload
pass
end stopMovie
on setLocalVariables
global gPoemIsPlaying, gRetraceNames
global gCurrChan,gFirsChan,gLastChan,gPrevHilite
if voidP(gRetraceNames) then put empty into gRetraceNames
put false into gPoemIsPlaying
put 0 into gPrevHilite
put 2 into gCurrChan
put 2 into gFirsChan
put 8 into gLastChan
end setLocalVariables
on addToRetracexxx
global gPoetryList,gRetraceNames,gLastRetraceName
global gRetraceLabels, gPoemLabel, gPageIndex, it
put the frameLabel into gPoemLabel
put getaProp(gPoetryList, gPoemLabel) into it
put getAt(it,1) into retraceName
if gLastRetraceName = retraceName then exit
put the number of lines in gRetraceNames into nr
put gLastRetraceName into line(nr+1) of gRetraceNames
put gPoemLabel into line(nr+1) of gRetraceLabels
if nr = 15 then
delete line 1 of gRetraceNames
delete line 1 of gRetraceLabels
put retraceName into gLastRetraceName
end if
end addToRetrace
on getDescr N
-- searches the data in the list for the product then returns the description
-- you could make similar handlers for other values in the property lists.
global Data
if not listP(Data) then set Data = value(field "data")
repeat with P in Data
if the Prod of P = N then return ( the Desc of P )
end repeat
end
on delay howLong
startTimer
repeat while the timer < howLong
end repeat
end delay
on retraceLocal
stopPoem
retrace
end
on contentsLocal
stopPoem
doContents
-- go movie "TOC.DIR"
-- abort
end contents